package com.shop.operator.service;

import com.shop.domain.PageResult;
import com.shop.model.Content;

public interface ContentService {

	/**
	 * 查询所有的广告信息
	 * @param page 页数
	 * @param size 每页大小
	 * @return
	 * @throws Exception
	 */
	public PageResult findContent(int page,int size) throws Exception;
	
	/**
	 * 新增广告
	 * @param content
	 * @return
	 * @throws Exception
	 */
	public boolean add(Content content) throws Exception;
	/**
	 * 根据id查找广告信息
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Content findOneContent(Long id) throws Exception;
	
	/**
	 * 更改广告信息
	 * @param content
	 * @return
	 * @throws Exception
	 */
	public boolean update(Content content) throws Exception;
	
	/**
	 * 删除广告
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public boolean delete(Long[] ids) throws Exception;
	
	
	
}
